#ifndef SIGNALDATA_H
#define SIGNALDATA_H
#include <qwt_series_data.h>

class SignalData :public QwtSeriesData<QPointF>
{
	friend class DataCurve;
private:
	SignalData();
	~SignalData();
	virtual QPointF sample(size_t i) const;
	virtual size_t size() const;
	virtual QRectF boundingRect() const;
	void addPoint(double x,double y);
	void clear(){ data_points.clear(); }
	QPointF& at(int idx){ return data_points[idx]; }
	int size(){ return data_points.size(); }
	QVector<QPointF> data_points;
	QRectF bounding;
};

#endif // SIGNALDATA_H
